﻿using System;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                Stact();
                Chara cha = new Chara();
                cha.Chara2();
                Console.WriteLine("开始游戏吗？ <y/n>");
                string key1 = Console.ReadLine();
                if (key1.Equals("y"))
                {
                    Opreation op2 = new Opreation();
                    Name N = new Name();
                    Console.WriteLine("请出拳：1.剪刀 2.石头 3.布(输入相应的数字)");
                    op2.Msg();
                    op2.Opre();
                    cha.Chaopre();
                    Person pr = new Person();
                    pr.Judge1();
                    Console.WriteLine("=======================比分=========================");
                    pr.Score();
                }
                else
                {
                    Environment.Exit(0);
                }
                Console.WriteLine("==================================");
                Console.WriteLine();
            }

        }
        //public static int[] Record(Opreation op)
        //{
        //    int draw = 0;
        //    int defeat = 0;
        //    int victory = 0;
        //    int Num2 = op.Opper2();
        //    int Num = op.Opper();
        //    if (Num2 == Num)
        //    {
        //        draw++;
        //    }
        //    if (Num2 > Num & Num2 == Num + 1)
        //    {
        //        victory++;
        //    }
        //    if (Num2 < Num & Num2 == Num - 1)
        //    {
        //        defeat++;
        //    }
        //    Console.WriteLine(victory);
        //    Console.WriteLine(draw);
        //    Console.WriteLine(defeat);
        //    int[] arr = new int[] { draw,victory, defeat };
        //    return arr;
        //}
        public static void Stact()
        {
            Console.WriteLine("欢迎来到游戏世界");
            Console.WriteLine("猜拳开始");
            Console.WriteLine("出拳规则： 1.剪刀 2.石头 3.布");
            Console.WriteLine("请选择对方角色 ：1.刘备 2.孙权 3.曹操");
        }
    }
}
